import request from '@/utils/request'

export function getOrder(params) {
  return request({
    url: '/admin/order',
    method: 'get',
    params: params
  })
}

export function updateOrder(id, params) {
  return request({
    url: '/admin/order/' + id,
    method: 'put',
    params: { state: params }
  })
}

